package com.foreverwin.jzymes.common.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.common.mapper.ActivityLogMapper;
import com.foreverwin.jzymes.common.domain.ActivityLog;
import com.foreverwin.jzymes.common.service.IActivityLogService;

/**
 * 过站记录 服务层实现
 * 
 * @author ervin
 * @date 2019-03-18
 */
@Service
public class ActivityLogServiceImpl implements IActivityLogService
{
	@Autowired
	private ActivityLogMapper activityLogMapper;

	/**
     * 查询过站记录信息
     * 
     * @param handle 过站记录ID
     * @return 过站记录信息
     */
    @Override
	public ActivityLog selectActivityLogById(String handle)
	{
	    return activityLogMapper.selectActivityLogById(handle);
	}
	
	/**
     * 查询过站记录列表
     * 
     * @param activityLog 过站记录信息
     * @return 过站记录集合
     */
	@Override
	public List<ActivityLog> selectActivityLogList(ActivityLog activityLog)
	{
	    return activityLogMapper.selectActivityLogList(activityLog);
	}
	
    /**
     * 新增过站记录
     * 
     * @param activityLog 过站记录信息
     * @return 结果
     */
	@Override
	public int insertActivityLog(ActivityLog activityLog)
	{
	    return activityLogMapper.insertActivityLog(activityLog);
	}
	
	/**
     * 修改过站记录
     * 
     * @param activityLog 过站记录信息
     * @return 结果
     */
	@Override
	public int updateActivityLog(ActivityLog activityLog)
	{
	    return activityLogMapper.updateActivityLog(activityLog);
	}

	/**
     * 删除过站记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteActivityLogByIds(String ids)
	{
		return activityLogMapper.deleteActivityLogByIds(ids.split(","));
	}
	
}
